import request from '@/utils/request'

const analysisApi = {
	//获取省份销量报表
	provChartsUrl: '/admin/baobiao/shengxiaoliang',
	//获取品牌销量分析
	companyBrandChartsUrl: '/admin/baobiao/company',
	//获取机型销量分析
	brandChartsUrl: '/admin/baobiao/brandxl',
	//获取销售金额分析
	marketChartsUrl: '/admin/baobiao/xiaoshou',
}

export function marketCharts(parameter) {
	return request({
		url: analysisApi.marketChartsUrl,
		method: 'post',
		data: parameter
	})
}

export function brandCharts(parameter) {
	return request({
		url: analysisApi.brandChartsUrl,
		method: 'post',
		data: parameter
	})
}

export function companyBrandCharts(parameter) {
	return request({
		url: analysisApi.companyBrandChartsUrl,
		method: 'post',
		data: parameter
	})
}

export function provCharts(parameter) {
	return request({
		url: analysisApi.provChartsUrl,
		method: 'post',
		data: parameter
	})
}